package org.example.quartz.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;

@Configuration
public class MyConfig {

    @Bean
    public Student myStudent() {
        Student john = new Student("John", 25);
        System.out.println(john.getCreateTime());
        return john;
    }

    @Bean
    public ArrayList<Student> studentArrayList() {
        ArrayList<Student> students = new ArrayList<>();
        students.add(myStudent());
        System.out.println("students 里面的 student " + students.get(0).getCreateTime());
        return students;
    }
}
